#include <iostream>
#include <string>
#include "inheritance.h"

using namespace std;

int main (){

    cout << "Inheritance test setine hosgeldiniz !" << endl;

    BetterAlgorithm b("Elgamal","log(n)");
    //Bu hata verir cout << b.name;
    b.print_info();
    b.computation();

    //Bi tane de pointer ile deneyek

    BetterAlgorithm *bp = new BetterAlgorithm("binarysearch","2**n");
    bp->print_info();
    bp->computation();

    // Bir de 3. bir sekilde denesek ya :
    BetterAlgorithm *bc = new BetterAlgorithm();
    bc -> set_values("osmanalgoritmasi","cokN");
    bc -> print_info();
    bc -> computation();

    return 0;
}

